<!DOCTYPE html>
<html lang="en" >
<head>
        <meta charset="UTF-8">
        <title>webup</title>
        <link rel="stylesheet" type="text/css" href="/static/css/webup.css"/>
        <script type="text/javascript" src="../static/js/include.js?jquery,validation,dvs"></script>
        <script type="text/javascript">
                function winRefresh() {
                        window.location.reload();
                }

                function doUserStutas() {
                     //展示金币积分元宝数据
                        dvs.ajax({
                                url : "/doUserStutas",
                                loading : "modal",
                                param : {},
                                callback : function(json) {
                                        if (json.code==200) {
                                                //人物属性信息

                                                var UNAME = json.data.CT_NAME;
                                                var CHARSEQ;
                                                var NEED_POINT = "1500";
                                                var NEED_INGOT = "1000";
                                                var NEED_GOLD = "50000000";
                                                var NEED_POINT_DEL = "";
                                                var NEED_INGOT_DEL = "0";
                                                var NEED_GOLD_DEL = "10000000";
                                                var MYPOINT = json.data.CT_POINT;
                                                var MYINGOT = json.data.CT_INGOT;
                                                var MYGOLD = json.data.CT_GOLD;
                                                var MYCHARINDEX = json.data.CT_CHARINDEX;
                                                document.getElementById("MyStutas").innerHTML="["+UNAME+"]" +":"+ "积分:" + MYPOINT + " 元宝:" + MYINGOT + " 金币:" + MYGOLD;
                                        }else {
                                                // window.location.href="/webup";
                                                dvs.alert(json.message);
                                                window.location.replace('login');
                                                return;
                                        }
                                }
                        })


                }

                function onUserClick(i)
                {
                        dvs.ajax({
                                url : "/webUp/obtainSolyTypeBy",
                                loading : "modal",
                                param : {
                                        IT_SLOTTYPE:i
                                },
                                callback : function(json) {
                                        if (json.code==200) {
                                                var strPath = "open/"+i;
                                                window.open(strPath,"","resizable=no,scrollbars=no,status=no,location=no,help=no,width=440,height=500");
                                        }else {
                                                dvs.alert(json.message);
                                                return;
                                        }
                                }
                        })

                        // window.location.replace(strPath);
                }
        </script>
</head>
<body onload="doUserStutas()" onselectstart="return false">
<div class="bg">
        <div id="9" class="pifeng" onclick=onUserClick(9)></div>

        <div id="14" class="chibang" onclick=onUserClick(14)></div>
        <div id="10" class="xianglian" onclick=onUserClick(10)></div>
        <div id="11" class="jiezhi1" onclick=onUserClick(11)></div>
        <div id="12" class="jiezhi2" onclick=onUserClick(12)></div>
        <div id="1" class="zhushou" onclick=onUserClick(1)></div>
        <div id="2" class="fushou" onclick=onUserClick(2)></div>
        <div id="3" class="shuangshou" onclick=onUserClick(3)></div>
        <div id="4" class="tou" onclick=onUserClick(4)></div>
        <div id="5" class="yifu" onclick=onUserClick(5)></div>
        <div id="6" class="kuzi" onclick=onUserClick(6)></div>
        <div id="7" class="shoutao" onclick=onUserClick(7)></div>
        <div id="8" class="xiezi" onclick=onUserClick(8)></div>
        <div class="stutas">
                <table>
                        <tr>
                                <td colspan="10" align="center" valign="middle">
                                        <div id="MyStutas"></div>
                                </td>
                        </tr>
                </table>
        </div>
</div>
</body>
</html>